<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
        <script src="1-3.js" type="text/javascript"></script> 
</head>

<body>

</body>
<script>
    //     var date1 = new Date();  // "January 1,2017"
    //     console.log(date1.toDateString());
    //     var date2 = new Date();  //"February 1,2017"
    //     console.log(date2);

    //     console.log(date2.getFullYear() + "-" + date2.getMonth() + "-" + date2.getDay()+"-"+date2.getMilliseconds()+"-"+date2.getUTCFullYear());
    //     // alert(date1<date2); //true



    //     function getWeek() {
    //         var arr = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
    //         console.log(arr[




    //                    new Date().getDay()]);

    //         let obj = {
    //             "0": "星期日", "1": "星期一", "2": "星期二", "3": "星期三", "4": "星期四", "5": "星期五", "6": "星期六"
    //         }
    //         console.log(obj[new Date().getDay()]);

    //     }

    //     getWeek();


    // var aaa=null;
    // var bbb="catastrophe";
    // for(i=0;i<10;i++){
    //     re=/cat/g;
    //     console.log(re.test(bbb)) ;
    // }


    // function sum(value1,value2){
    //     return value1+value2
    // }
    // alert(sum(10,10));  //20
    // var anothersum=sum  //使用不带圆括号的函数名是访问函数指针，而非调用函数
    // alert(anothersum(10,10));
    // sum=null;  //即使将sum设置为null，让它与函数断绝联系，但仍可以正常调用anothersum
    // alert(anothersum(10,10));

    // function num111(num) {
    //      return num + 10; 
    // }
    // alert(num111());


    var yue = fun1("lele");
    function fun1(yue) {
        return {
            name: yue
        }
    }
    console.log({ name: "lele" });
    function fun2() { }

   function outer(){
    return inner();
   } 
function  inner(){
    alert(inner.caller);
}
outer();
</script>


</html>